<templateSet group="linux_commands">
  <template name="mysqldump" value="### ----------------------------&#10;mysqldump --single-transaction -u &lt;$USERNAME&gt; -h localhost -p&lt;$PASSKEY&gt; &lt;$DBNAME&gt; | gzip -9 &gt; backup_&lt;DBNAME&gt;.`date +%d-%m-%Y_%H-%M`.sql.gz&#10;### ----------------------------" description="backup mysql database" toReformat="false" toShortenFQNames="true">
    <context>
      <option name="Bash" value="true" />
    </context>
  </template>
  <template name="mount_network_drive" value="### -------------------------------------&#10;sudo -S mkdir /mnt/sharedfolder/ &#10;sudo -S mount -t cifs -w -o username=nabed -o password=nabed //192.168.0.58/sharedfolder /mnt/sharedfolder/&#10;### -------------------------------------" description="mount network drive (samba)" toReformat="false" toShortenFQNames="true" />
  <template name="scp_files" value="### ------------------------------------------------------------------&#10;### from:&#10;scp &lt;user_name&gt;@&lt;server_name.ru&gt;:&lt;full_path_to_server's file&gt; &lt;local path to file ex: ./&gt;&#10;&#10;### ---------------&#10;### to&#10;&#10;scp &lt;path_to_file_src&gt; &lt;user_name&gt;@&lt;server&gt;:&lt;path_to_file_dest&gt;&#10;&#10;### ------------------------------------------------------------------" description="copy file to server throw ssh" toReformat="false" toShortenFQNames="true" />
  <template name="ssh-generate" value="### -------------------------------------------------------&#10;&#10;$ ssh-keygen -t rsa -b 4096 -C &quot;your_email@example.com&quot;&#10;&#10;### -------------------------------------------------------" description="generat rsa key (from github man)" toReformat="false" toShortenFQNames="true" />
  <template name="cp_dir" value="#------------------------&#10;cp -a /source/. /dest/&#10;#------------------------&#10;" description="copy one drictory to another" toReformat="false" toShortenFQNames="true">
    <context>
      <option name="Bash" value="true" />
    </context>
  </template>
  <template name="cp_and_overwrite" value="#-----------------------------------------&#10;cp -Rv --remove-destination &lt;./src/*&gt; &lt;./dest&gt;&#10;#-----------------------------------------" description="copy and overwrite if exist" toReformat="false" toShortenFQNames="true" />
  <template name="ssh_by_pass" value="# connect to ssh server use password&#10;ssh -o IdentitiesOnly=yes &lt;username&gt;@&lt;address&gt;" description="connect use password" toReformat="false" toShortenFQNames="true">
    <context>
      <option name="Bash" value="true" />
    </context>
  </template>
  <template name="ip" value="#How do i change the state of the device to UP or DOWN&#10;&#10;ip link set dev {device} {up|down}&#10;&#10;#for example:&#10;&#10;ip link set dev eth1 down&#10;ip link set dev eth1 up&#10;&#10;-#------------------------&#10;&#10;ip addr&#10;ip l&#10;&#10;#assign the IP address to the interface&#10;ip a add {ip_addr/mask} dev {interface}&#10;&#10;#table&#10;&#10;Object&#9;&#9;Abbreviated form&#9;Purpose&#10;link&#9;&#9;&#9;l&#9;&#9;&#9;&#9;&#9;Network device.&#10;&#10;address&#9;&#9;a&#10;addr&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;Protocol (IP or IPv6) address on a device.&#10;&#10;addrlabel&#9;&#9;addrl&#9;&#9;&#9;&#9;Label configuration for protocol address selection.&#10;&#10;neighbour&#9;n&#10;neigh&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;ARP or NDISC cache entry.&#10;&#10;route&#9;&#9;&#9;r&#9;&#9;&#9;&#9;&#9;Routing table entry.&#10;rule&#9;&#9;&#9;ru&#9;&#9;&#9;&#9;&#9;Rule in routing policy database.&#10;&#10;maddress&#9;&#9;m&#10;maddr&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;Multicast address.&#10;&#10;mroute&#9;&#9;mr&#9;&#9;&#9;&#9;&#9;Multicast routing cache entry.&#10;tunnel&#9;&#9;&#9;t&#9;&#9;&#9;&#9;&#9;Tunnel over IP.&#10;xfrm&#9;&#9;&#9;x&#9;&#9;&#9;&#9;&#9;Framework for IPsec protocol." description="ip commands network" toReformat="false" toShortenFQNames="true" />
  <template name="change_rights" value="# например заходим в .git, от root запускать&#10;# меняем права на все директории&#10;find . -type d -exec chmod 775 {} \;&#10;# меняем права на все файлы&#10;find . -type f -exec chmod 664 {} \;&#10;# меняем владельца&#10;chown -R root:www .&#10;-----------------------------------------------------------------------" description="change rights for folder and subfolders in current dir" toReformat="false" toShortenFQNames="true" />
</templateSet>